﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;

namespace MobileGIS.Geometries
{
    /// <summary>
    /// 点串
    /// </summary>
    public class PointCollection
    {
        public List<MapPoint> m_pts = new List<MapPoint>();
        public PointCollection()
        {
        }

        public int Count 
        {
            get { return m_pts.Count; }
        }

        public MapPoint this[int index]
        {
            get { return m_pts[index]; }
            //set;
        }

        internal void Add(MapPoint pt)
        {
            m_pts.Add(pt);
        }

        internal void Remove(MapPoint pt)
        {
            m_pts.Remove(pt);
        }

        internal void RemoveAt(int index)
        {
            m_pts.RemoveAt(index);
        }

        internal void Clear()
        {
            m_pts.Clear();
        }


    }
}
